/*
package com.cqemme.activitiservice.controller.node;

import com.cqemme.activitiservice.service.node.SosService;
import com.cqemme.comm.po.CurrentLoginUser;
import com.cqemme.comm.po.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import java.util.Map;

*/
/**
 * SOS校徽报警控制器
 *
 * @author daibin
 *//*

@RestController
@RequestMapping("/sos")
@Slf4j
@Api(tags = "SOS报警相关")
public class SosController {

    @Autowired
    private SosService sosService;

    */
/**
     * 校徽报警
     *
     * @param student
     *//*

    @ApiOperation(value = "校徽产生sos报警（node内部调用）", notes = "daibin")
    @RequestMapping(value = "/sosAlarm", method = RequestMethod.POST)
    @ResponseBody
    public Result sosAlarm(@RequestBody String student) {
        //student = "{\"IMSI-id\":\"460045734304556\",\"Electricity\":\"4108\",\"distance\":5604,\"orgCode\":500107002,\"Sos-Sign\":\"1\",\"schoolId\":500107002,\"Nb-Strength\":\"23\",\"IMEI-id\":\"869075030145728\",\"Gps\":[{\"Address\":\"重庆市渝中区石油路街道金银湾215附2号楼\",\"Latitude\":\"29.5490140822686\",\"_id\":\"5e13ebad7e8f074658cbec34\",\"Longitude\":\"106.492492133174\"}],\"Student\":{\"studentAge\":7,\"updateDate\":\"2020-01-02 14:01:58\",\"imeiNo\":869075030145728,\"studentTel\":18956895689,\"studentNumber\":20190625,\"studentName\":\"赵思\",\"idCardNo\":\"532101199906252356\",\"headImage\":\"https://images.cqemme.com/images/png/default/file662299160141103104.png\",\"dataStatus\":1,\"id\":93,\"studentSex\":1,\"createDate\":\"2020-01-02 14:01:58\"},\"sosSite\":\"in\",\"Step-Count\":\"270\"}";
        return sosService.handleSoSAlarm(student);
    }

    */
/**
     * 报警柱触发报警
     * @param json
     *//*

    @ApiOperation(value = "报警柱触发报警", notes = "daibin")
    @ApiImplicitParam(name = "json", value = "类似于这种传 -> {longitude:'经度',latitude:'维度'", required = true)
    @RequestMapping(value = "/pillarAlarm", method = RequestMethod.POST)
    @ResponseBody
    public Result pillarAlarm(@RequestBody String json) {
        return sosService.pillarAlarm(json);
    }

    */
/**
     * 火灾触发报警
     *
     * @param json
     *//*

    @ApiOperation(value = "火灾触发报警", notes = "daibin")
    @ApiImplicitParam(name = "json", value = "类似于这种传 -> {longitude:'经度',latitude:'维度'", required = true)
    @RequestMapping(value = "/fireAlarm", method = RequestMethod.POST)
    @ResponseBody
    public Result fireAlarm(@RequestBody String json) {
        return sosService.fireAlarm(json);
    }

    */
/**
     * (保安等组织)人员查询自己的候选任务和自己代理的任务
     *
     * @param secuIdfenceSos
     * @return
     *//*

//    @ApiOperation(value = "查询自己的候选任务和自己代理任务", notes = "daibin")
//    @ApiImplicitParam(name = "secuId", value = "人员id", paramType = "query", required = true, dataType = "String")
//    @RequestMapping(value = "/candidateTask", method = RequestMethod.GET)
//    @ResponseBody
//    public Result candidateTask(@RequestParam("secuId") String secuId) {
//        return sosService.candidateTask(secuId);
//    }

    */
/**
     * (保安等组织)人员查询自己的已办任务/未办任务/候选人任务
     *
     * @param pageNum
     * @param pageSize
     * @param pageNum
     * @return
     *//*

    @ApiOperation(value = "根据自己的手机号查询已办/待办任务/候选人任务", notes = "daibin")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "taskType", value = "任务状态(1:已办 2:代理人任务 3:候选人任务)", required = true, paramType = "query", dataType = "Integer"),
            @ApiImplicitParam(name = "pageNum", value = "分页页码", paramType = "query", dataType = "Integer"),
            @ApiImplicitParam(name = "pageSize", value = "分页数据条数", paramType = "query", dataType = "Integer"),
    })
    @RequestMapping(value = "/selectTask", method = RequestMethod.GET)
    @ResponseBody
    public Result doneTaskList(
            CurrentLoginUser currentLoginUser,
            @RequestParam Integer taskType,
            @RequestParam(defaultValue = "1") Integer pageNum,
            @RequestParam(defaultValue = "10") Integer pageSize
    ) {
        if (taskType == 1) {
           // return sosService.doneTaskList(currentLoginUser, pageNum, pageSize);
        } else if (taskType == 2) {
          //  return sosService.assignTask(currentLoginUser, pageNum, pageSize);
        } else if (taskType == 3) {
           // return sosService.candidateTask(currentLoginUser,pageNum, pageSize);
        }
        return null;
    }

    */
/**
     * 根据流程id 查流程详情(查所有的流程变量展示学生的数据-查走过的流程节点展示进行步骤-根据流程id和人员id查当前任务展示这个人是否是本任务的完成人)
     *
     * @param instanceId
     * @return
     *//*

    @ApiOperation(value = "根据流程id查流程详情", notes = "daibin")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "instanceId", value = "流程实例id", required = true, paramType = "query", dataType = "String"),
    })
    @RequestMapping(value = "/selectInstanceInfo", method = RequestMethod.GET)
    @ResponseBody
    public Result selectInstanceInfo(
            @RequestParam String instanceId
    ) {
        return sosService.selectInstanceInfo(instanceId);
    }


    */
/**
     * 其中有一个保安抵达报警地点
     *
     * @param json
     * @return
     *//*

    @ApiOperation(value = "保安抵达报警地点（node内部调用）", notes = "daibin")
    @RequestMapping(value = "/securityArrival", method = RequestMethod.POST)
    @ResponseBody
    public Result securityArrival(@RequestBody String json) {
        return sosService.securityArrival(json);
    }

    */
/**
     * 保安队长分配任务
     *
     * @param json
     * @return
     *//*

    @ApiOperation(value = "保安队长分配任务", notes = "daibin")
    @ApiImplicitParam(name = "json", value = "类似于这种传 -> {taskId:'任务id',gearId:'被指定保安id',leaderName:'保安队长名字',gearName:'指派保安名字'}", required = true)
    @RequestMapping(value = "/gearTask", method = RequestMethod.POST)
    @ResponseBody
    public Result gearTask(
            CurrentLoginUser currentLoginUser,
            @RequestBody Map json
    ) {
        return sosService.gearTask(currentLoginUser,json);
    }

    */
/**
     * 保安查明情况 - 结束流程
     *
     * @param json
     * @return
     *//*

    @ApiOperation(value = "保安做记录 - 报警处理完毕", notes = "daibin")
    @ApiImplicitParam(name = "json", value = "类似于这样传 -> {taskId:'任务id',name:'处理人名字',alarmRecord:'报警记录'}", required = true)
    @RequestMapping(value = "/overSos", method = RequestMethod.POST)
    @ResponseBody
    public Result overSos(
            CurrentLoginUser currentLoginUser,
            @RequestBody Map json
    ) {
        return sosService.overSos(currentLoginUser,json);
    }

    */
/**
     * 班主任处理sos报警
     *
     * @param json
     * @return
     *//*

    @ApiOperation(value = "班主任处理学生报警", notes = "daibin")
    @ApiImplicitParam(name = "json", value = "类似于这样传 -> {taskId:'任务id',name:'班主任名字',teacherRecord:'班主任处理记录',isGoOn:'yes/no'}", required = true)
    @RequestMapping(value = "/teacherHandle", method = RequestMethod.POST)
    @ResponseBody
    public Result teacherHandle(
            CurrentLoginUser currentLoginUser,
            @RequestBody Map json
    ) {
        return sosService.teacherHandle(currentLoginUser,json);
    }

    */
/**
     * 电子围栏报警
     *
     * @param json
     * @return
     *//*

    @ApiIgnore
    @RequestMapping(value = "/fenceSos", method = RequestMethod.POST)
    @ResponseBody
    public Result fenceSos(@RequestBody String json) {
        return sosService.fenceSos(json);
    }


}
*/
